package com.yuncheng.spcyApi.service.impl;

import com.yuncheng.spcyApi.entity.SpcyQyWlgyssjgx;
import com.yuncheng.spcyApi.mapper.SpcyQyWlgyssjgxMapper;
import com.yuncheng.spcyApi.service.ISpcyQyWlgyssjgxService;
import com.yuncheng.spcyApi.utils.GetUuIdUtils;
import org.springframework.stereotype.Service;

import com.yuncheng.common.base.service.impl.BaseServiceImpl;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Description: 审评查验-物料供应商审计关系
 * @Author: yuncheng
 * @Date: 2023-11-21
 * @Version: V1.0
 */
@Service
public class SpcyQyWlgyssjgxServiceImpl extends BaseServiceImpl<SpcyQyWlgyssjgxMapper, SpcyQyWlgyssjgx> implements ISpcyQyWlgyssjgxService {

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void addWlgyssjGx(String wlmlid, String wlsjid) {
        SpcyQyWlgyssjgx wlgyssjgx = new SpcyQyWlgyssjgx();
        wlgyssjgx.setId(GetUuIdUtils.ReplaceUuId());
        wlgyssjgx.setFwlmlid(wlmlid);
        wlgyssjgx.setFwlsjid(wlsjid);
        save(wlgyssjgx);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void deleteWlgyssjGx(String id) {
        removeById(id);
    }
}
